﻿Imports System.Data
Imports System.Data.OleDb
Imports DAO
Imports DTO

Public Class XeBus     Shared dao As New XeDao

    Public Shared Function LayDanhSachXe() As DataTable
        Return dao.LayDanhSachXe()
    End Function

    Public Shared Function TimXe(ByVal xe As XeDto) As DataTable
        Return dao.TimXe(xe)
    End Function

    Public Shared Function TimXeTheoMaXe(ByVal maXe As Integer) As DataTable
        Return dao.TimXeTheoMaXe(maXe)
    End Function

    Public Shared Function LaySoChoNgoi_TheoMaXe(ByVal maXe As Integer) As Integer
        Return dao.LaySoChoNgoi_TheoMaXe(maXe)
    End Function

    Public Shared Function ThemXe(ByVal xe As XeDto) As Integer
        Return dao.ThemXe(xe)
    End Function

    Public Shared Function CapNhatXe(ByVal xe As XeDto) As Integer
        Return dao.CapNhatXe(xe)
    End Function

    Public Shared Function XoaXe(ByVal maCanXoa As Long) As Integer
        Return dao.XoaXe(maCanXoa)
    End Function


End Class
